package com.straw.hat.shardingjdbc.dao;

import com.straw.hat.shardingjdbc.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @company: 鲸灵科技
 * @author: qiyue@webuy.ai
 * @date: 2019/10/7
 * @time: 1:16 上午
 */
@Mapper
public interface UserMapper {

    int delete(@Param(value = "id") Long id);
    int insert(@Param("user") UserInfo userInfo);
    int update(@Param(value = "id") Long id);
    UserInfo findWithId(@Param(value = "id") Long id);


}
